using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SkillObjectAnimationEvent : EntityAnimationEvent
{
    SkillObject_TimeEcho skillObject_TimeEcho;

    protected override void Awake()
    {
        skillObject_TimeEcho= GetComponentInParent<SkillObject_TimeEcho>();
    }
    private void SetTimeEchoAttack(int currentAttackCount)
    {
        int attackCount = skillObject_TimeEcho.GetAttackCount();
        if (attackCount == currentAttackCount)
        {
            skillObject_TimeEcho.HandleDestory();
            return;
        }
    }
    private void PerformAttack() => skillObject_TimeEcho.HandleAttack();
}
